<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title></title>
</head>
<body>
    <div th:fragment="header">
        <nav class="navbar navbar-fixed-top">
            <div id="logoNav" class="container-fluid">
                <div class="logo">机场地服监控系统</div>
                <div id="logout">
                    <span th:text="${session.user.username}"></span>&nbsp&nbsp
                    <a href="#" ng-click="logout()">注销</a>
                </div>
                <div id="headTime">
                    <span ng-bind="serverDateTime"></span>
                </div>
            </div>

            <div id="contentNav" class="container-fluid">
                <div class="navbar-collapse collapse custom-collapse">
                    <ul class="nav navbar-nav navbar-left">
                        <li th:if="${session.user.role == 0 || session.user.role == 1}">
                            <a class="active" href="turn?url=monitor" target="main">
                                <img th:src="@{/pic/monitor.png}" />系统监控
                            </a>
                        </li>
                        <li th:if="${session.user.role == 0 || session.user.role == 1}">
                            <a href="turn?url=logQuery" target="main">
                                <img th:src="@{/pic/query.png}" />日志查询
                            </a>
                        </li>
                        <li th:if="${session.user.role == 0}">
                            <a href="turn?url=systemConfig" target="main">
                                <img th:src="@{/pic/config.png}" />系统配置
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</body>
</html>